<template>
  <div class="home-header">
    <div class="home-logo">
      <van-icon class="logo" class-prefix="icon" name="qichezhijia" size="60PX" />
    </div>
    <div class="home-search" @click="searchPage">
      <van-icon name="search" size="20PX" class="fdj" />
      <span>林肯 | 冒险家 | 飞行家</span>
    </div>
  </div>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router';
const router = useRouter()
const searchPage = () => {
  // alert(1)
  router.push({
    path: '/search'
  })
}
</script>
<style lang="scss" scoped>
.home-header {
  height: 50px;
  width: 100%;
  background-color: #fff;
  padding: 0 10px;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 3;
  color: #333;
  left: 0;
  top: 0;

  .home-logo {
    height: 50px;
    width: 60PX;
    /* background-color: pink; */

    .logo {
      position: absolute;
      top: -20px;
      color: rgb(21 86 207);
    }

  }

  .home-search {
    margin-left: 10px;
    height: 36px;
    border-radius: 18px;
    background-color: #fff;
    flex: 1;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px 0 rgb(29 34 43 / 8%);

    .fdj {
      margin: 0 5px;
    }
  }
}

#app {
  height: 100%;
}
</style>